#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	int i = 0;
	int j = 0;
	scanf("%d", &n);
	{
		printf("*\n");
		printf("* *\n");
	}
	for (i = 1; i < n - 2; i++)
	{
		printf("* ");
		for (j = 1; j <= i; j++)
		{
			printf("  ");
		}
		printf("* \n");
	}
	for (i = 1; i <= n; i++)
	{
		printf("* ");
	}
	return 0;
}